<?php

	use vendors\pegasus\App;
	use vendors\pegasus\Routes;

	App::uses('Routes','vendor.pegasus');


	Routes::connect('informatica',array('controller'=>'index','action'=>'list','param'=>array('id','carteira','date','nome')));

	Routes::connect('user',array('controller'=>'grupocategorias','action'=>'view','param'=>array('id','nome','sobrenome')));
	Routes::connect('user',array('controller'=>'categorias','action'=>'edit','param'=>array('id')));
	Routes::connect('user',['controller'=>'recoverpassword','action'=>'intermed','param'=>['action','metodo', 'key','email','user']]);
	Routes::connect('user',['controller'=>'recoverpassword','action'=>'unimed','param'=>['action','metodo', 'key','email','user']]);

	Routes::connect('beneficiario',array('controller'=>'boletospf','action'=>'generateboleto','param'=>array('venda','parcela')));
	Routes::connect('beneficiario',array('controller'=>'quitacaoanual','action'=>'view','param'=>array('referencia')));
	Routes::connect('beneficiario',array('controller'=>'guiamedico','action'=>'pdf','param'=>array('classificacao','especialidades', 'medico')));

	Routes::connect('recepcao',array('controller'=>'boletospf','action'=>'generateboleto','param'=>array('venda','parcela','carteira')));
	Routes::connect('recepcao',array('controller'=>'quitacaoanual','action'=>'view','param'=>array('referencia','contrato','carteira')));
	Routes::connect('recepcao',array('controller'=>'debitoautomatico','action'=>'pdf','param'=>array('cpf','carteira_beneficiario',  'telefone', 'endereco', 'cidade', 'banco', 'agencia', 'conta_corrente', 'vencimento', 'valor')));

	Routes::connect('cooperado',array('controller'=>'demonstrativofinanceiro','action'=>'view','param'=>array('referencia','contrato','tipo')));
	Routes::connect('prestador',array('controller'=>'demonstrativofinanceiro','action'=>'view','param'=>array('referencia','contrato','tipo')));

	Routes::connect('empresa',array('controller'=>'boletospj','action'=>'generateboleto','param'=>array('venda','parcela')));


